package org.zoffy.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zoffy.commons.BaseResponse;
import org.zoffy.model.entity.HotTopicItem;
import org.zoffy.model.vo.HotTopicVO;
import org.zoffy.service.hotTopic.HotTopicService;

import java.util.List;

@RestController
@RequestMapping("/hot_topic")
public class HotTopicController {
    @Resource
    private HotTopicService hotTopicService;

    @GetMapping("/douyin")
    public BaseResponse<HotTopicVO> getDouyinHotTopics() {
        return BaseResponse.success(hotTopicService.getDouyinHotTopics());
    }

    @GetMapping("/weibo")
    public BaseResponse<HotTopicVO> getWeiboHotTopics() {
        return BaseResponse.success(hotTopicService.getWeiboHotTopics());
    }

    @GetMapping("/baidu")
    public BaseResponse<HotTopicVO> getBaiduHotTopics() {
        return BaseResponse.success(hotTopicService.getBaiduHotTopics());
    }
}